package com.szt.school.rabbitmq.work;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "my_work_queue")
public class WorkConsumer1 {
    @RabbitHandler
    public void process(String msg) {
        System.out.println("消费者1：接收 msg ‐> " + msg);
    }
}
